package bricks.entity;

import javafx.scene.image.Image;

public class Brick extends AbstractGraph{

    public Brick(double x, double y, double width, double height) {
        super(x, y, width, height);
        double random = Math.random();
        if (random <= 0.2) {
            setImage(new Image("file:src/bricks/image/stone_normal_blue.png"));
        } else if (random <= 0.4) {
            setImage(new Image("file:src/bricks/image/stone_glow_green.png"));
        } else if (random <= 0.6) {
            setImage(new Image("file:src/bricks/image/stone_normal_purple.png"));
        } else if (random <= 0.8) {
            setImage(new Image("file:src/bricks/image/stone_normal_red.png"));
        } else {
            setImage(new Image("file:src/bricks/image/stone_normal_yellow.png"));
        }
    }
}
